#coding:gbk

from config import *
from  utils import *

def debug_info(name1 = '', name2 = '', data = ''):
    if DEBUG_SUPPORTED:
        length = len(data)
        print name1, name2, "[length = 0x%02X]" %length if length != 0 else ""
        i = 0
        for i in range(0, length, 16):
            bytes = data[i:i+16]
            print bytes2str(bytes)
        print

